package com.example.programme;

import android.content.Context;
import android.view.Gravity;
import android.widget.Toast;

public class MyToast {
    public static void makeText(Context context, String str,int duration) {
        Toast toast=Toast.makeText(context,str,duration);
        toast.setGravity(Gravity.CENTER,0,0);
        toast.show();
    }
}
